package jm_base

import (
	"context"
	"git.mycaigou.com/gfyx/micro-gfyx-oppty-service/infrastructure/repository/base/org"
	"git.mycaigou.com/gfyx/micro-gfyx-oppty-service/infrastructure/repository/base/user"
)

type JmBaseRepositoryIface interface {
	// SyncFromJmToNewBase 建模数据同步到新的表
	SyncFromJmToNewBase(ctx context.Context) error
	// CheckJmAndNewData 数据验证
	CheckJmAndNewData(ctx context.Context) error
	// WriteOrgToJm 组织架构数据变更到建模, operateType, 1: 新增；2：更新；3：删除
	WriteOrgToJm(ctx context.Context, operateType int32, orgObj *org.GfyOrganizationPo) (int64, error)
	// WriteUserToJm 用户数据变更到建模，operateType, 1: 新增；2：更新；3：删除
	WriteUserToJm(ctx context.Context, operateType int32, orgObj *user.GfyxUserPo) (int64, error)
}
